	<!-- Shell -->	
	<div class="shell">
	
	<!-- Side Full -->
	<div class="side-full">
		
		<!-- Text Cols -->
		<div class="cols">
			<div class="cl">&nbsp;</div>
			<div class="col5">
    			<div class="box">
    				<h2 class="title-box"><strong>Berita Terbaru</strong> <span></span></h2>
    				<div class="box-content box-center">
                    <div class="box-center-top">
                    	<div id="news">
                    		<?php 
                    		if(count($berita)>0)
                    		{
                    		?>
							<div class="topnews">
                            	<div class="colum"><img src="<?php echo $berita[0]['gambar'];?>" /></div>
                                <div class="colum">
                                	<a href="<?php echo $baseUrlSave."detail/".$berita[0]['id_content']."/".$berita[0]['judul_html']?>">
									<?php echo $berita[0]['judul']?>
									</a>
                                    <div class="date ndate">:: <?php echo $berita[0]['tanggal']?></div>
                                    <?php echo $berita[0]['isi']?>
                                    <div class="nmore"><a href="<?php echo $baseUrlSave."detail/".$berita[0]['id_content']."/".$berita[0]['judul_html']?>">selanjutnya...</a></div>
                                </div>
                            </div>
                            <?php 
                    		}?>
<!--                             
                            <div class="page">
                                <span class="nav"><a href="#"> prev </a></span>
                                <span><a class="act" href="#">1</a></span>
                                <span><a href="#">2</a></span>
                                <span><a href="#">3</a></span>
                                <span><a href="#">4</a></span>
                                <span><a href="#">5</a></span>   
                                <span><a href="#">6</a></span>
                                <span><a href="#">7</a></span>
                                <span><a href="#">8</a></span>
                                <span><a href="#">9</a></span>  
                                <span><a href="#">10</a></span>                                                                    
                                <span class="nav"><a href="#"> next </a></span>
                            </div>
-->                            
                            <div class="cl">&nbsp;</div>
                            
                            <div class="nlist">
                            	<ul>
                            	<?php 
                            	if(count($berita)>1)
                            	{
                            		for($i=1; $i<count($berita); $i++)
                            		{
                            	?>
                                	<li>
                                    	<div class="date bul"><?php echo $berita[$i]['judul']?></div>
                                        <div class="ncoll">
                                        <div class="ncol1">
                                        <a href="<?php echo $baseUrlSave."detail/".$berita[$i]['id_content']."/".$berita[$i]['judul_html']?>">
                                        <?php echo $berita[$i]['isi_s']?></a></div>
                                        </div>
                                    </li>
                                <?php 
                            		}
                            	}
                                ?>
                                                                         
                                </ul>
                            </div>
                        </div>
                    </div>
                       
                    <div class="box-center-bot"><a class="icon" href="<?php echo $baseUrlSave."berita";?>">Arsip Berita >></a></div>
                                       
    				</div>
    			</div>
			</div>
            
			<div class="col4">
			    <div class="box">
    				<h2 class="title-box"><strong>Info Kampus</strong><span></span></h2>
    				<div class="box-content box-center">
                    <div class="box-center-top">
    				<?php 
    				foreach($info as $i)
    				{
    				?>
						<div>
							<div class="date bul"> <?php echo $i['judul']?></div>
							<div class="headline">
							<a href="<?php echo $baseUrlSave."detail/".$i['id_content']."/".$i['judul_html']?>">
							 <?php echo $i['isi_s']?></div>
						</div>
						<div class="cl-8">&nbsp;</div>
					<?php 
    				}?>
					</div>
					
					<div class="box-center-bot"><a class="icon" href="<?php echo $baseUrlSave."info";?>">Arsip Info Kampus</a></div>				
					</div>
    			</div>
			</div>
			
			
			
			
			
			<div class="col4 col-last">
	
			<!-- login -->
			<div class="box login-side">
				<h2 class="title-box">Login<span></span></h2>
                <?php 
                if($loginAkses=="")
                {
                ?>
                <!-- form for login member -->
				<div class="box-content">
					<form name="frm_login" id="frm_login" action="" method="post">
						
						<label id="uname">NIM</label>
            			<input name="u_name" id="u_name" type="text" class="fieldbox" />
						
						<label>Password</label>
						<input name="u_pass" id="u_pass" type="password" class="fieldbox" />
                        
                        <label>Login As</label>
						<select name="u_kat" id="u_kat" class="fieldbox boxstyle-15">
                        	<option value="Siswa">Mahasiswa</option>
                        	<option value="Guru">Dosen</option>
                        </select>
                        <input type="hidden" name="u_init" id="u_init" value="login">
						<input type="submit" class="login-submit" value="Login" />
                        <div class="cl">&nbsp;</div>
<!-- 
                        <p><a class="link-2" href="#" class="bul">Lupa Password?</a ></p>
-->	
					</form>
				</div>
	                            <script type="text/javascript">
		                            $("#u_kat").change(function(){
		                                if($(this).val()=="Siswa")
		                                {
		                                    $("#uname").html("NIS");
		                                }
		                                else
		                                {
		                                    $("#uname").html("NIK");
		                                }
		                            });
	                            </script>
                <!-- end form for login member -->
            <?php 
            }
            elseif($loginAkses=="siswa")
            {
            	if(count($loginInfo)>0)
            	{
            ?>
                <!-- form after login member -->
                <div class="box-content">
                    <div id="login-info">
                        <div class="h3"><strong>.: User Information</strong></div>
                        <div class="cl-8">&nbsp;</div>
                        <table>
                        <tr valign="top">
                            <td width="25%"><img src="<?php echo $loginInfo[0]['photo']?>" /></td>
                            <td width="3%">&nbsp;</td>
                            <td width="72%">
                                <div class="h2-info idcolor"><?php echo $loginInfo[0]['nim']?></div>
                                <div class="h2-info2"><strong><?php echo $loginInfo[0]['nama']?></strong></div>
<!-- 
                                <div class="h2-info2">XII IPA</div>
-->                                
                            </td>
                        </tr>
                        </table>
                        <div class="cl">&nbsp;</div>
                        <div class="id-opt"><a class="link-2" href="<?php echo $baseUrlSave?>siswa">Menu Utama</a></div>
                        <span>|</span><div class="id-opt"><a class="link-2" href="<?php echo $baseUrlSave?>logout">Logout</a></div>                  
                    </div>               
                </div>
                <!-- end form after login member -->
	        <?php 
            	}
            }
            elseif($loginAkses=="dosen")
            {
            	if(count($loginInfo)>0)
            	{
            ?>
                <!-- form after login member -->
                <div class="box-content">
                    <div id="login-info">
                        <div class="h3"><strong>.: User Information</strong></div>
                        <div class="cl-8">&nbsp;</div>
                        <table>
                        <tr valign="top">
                            <td width="25%"><img src="<?php echo $loginInfo[0]['photo']?>" /></td>
                            <td width="3%">&nbsp;</td>
                            <td width="72%">
                                <div class="h2-info idcolor"><?php echo $loginInfo[0]['kode_guru']?></div>
                                <div class="h2-info2"><strong><?php echo $loginInfo[0]['nama']?></strong></div>
<!-- 
                                <div class="h2-info2">XII IPA</div>
-->
                            </td>
                        </tr>
                        </table>
                        <div class="cl">&nbsp;</div>
                        <div class="id-opt"><a class="link-2" href="<?php echo $baseUrlSave?>dosen">Menu Utama</a></div>
                        <span>|</span><div class="id-opt"><a class="link-2" href="<?php echo $baseUrlSave?>logout">Logout</a></div>                  
                    </div>               
                </div>
                <!-- end form after login member -->
	        <?php 
            	}
            }
            ?>          
			</div>
			<!-- End login -->	
	
	
	
				<div class="box box-half-1">
					<div class="box-content box-center">    
                    <div class="cl-3">&nbsp;</div>              
					<!-- banner widget -->
					<div class="box-side">
						<div class="box-widget">
                            <div class="box-widget">
                                <img src="<?php echo $template_path?>css/images/news-arrow-previous.png" class="previous" />
                                <div class="newsticker box-banner-space">
                                    <ul>
                                    <?php 
                                    foreach($banner_sekolah as $bs)
                                    {
                                    ?>
										<li>
											<p>
                                                <a href="<?php echo $bs['url']?>">
                                                <img class="img-banner-small-1" src="<?php echo $bs['image']?>" /></a>
                                            </p>
                                        </li>
                                     <?php 
									}?>
                                    </ul>
                                 </div>
                                 <img src="<?php echo $template_path?>css/images/news-arrow.png" class="next" />						                                       
                            </div>                             
						</div>  
					</div>
					<!-- End banner widget -->                     
    				</div>
    			</div>	
			
	
	
				<div class="cl">&nbsp;</div>
			</div>
		</div>
		<!-- End Text Cols -->
		
		<!-- Text Cols -->
		<div class="cols">
			<div class="cl">&nbsp;</div>
			<div class="col2">
    			<div class="box">
    				<h2 class="title-box"><strong>Beranda Kampus</strong> <span></span></h2>
    				<div class="box-content box-center-topin">
                    	<div class="box-col">
                        	<div class="adbox bg-url1"><span>UKM ::</span></div>
                            <div class="inbox">
                            	<div class="list">
								<ul>
								<?php 
								foreach($extra as $e)
								{
								?>
                                	<li>
										<a class="linkfak" href="<?php echo $baseUrlSave."detail/".$e['id_content']."/".$e['judul_html']?>">
											<table>
											<tbody>
												<tr>
													<td class="tbull">::</td>
													<td>
														<p class="title"><?php echo $e['judul']?></p>
														<p class="desc-fak"><?php echo $e['isi']?></p>
													</td>
												</tr>                                                                                                                                
											</tbody>
											</table>	
										</a>
                                    </li>     
                                 <?php 
								}?>
                               </ul>                             
								</div>
                            <div class="box-center-bot"><a class="icon" href="<?php echo $baseUrlSave."ekstra";?>">Arsip UKM</a></div>  
                            </div>  
                        </div>
                        
                    	<div class="box-col">
                        	<div class="adbox bg-url2"><span>E-Learning ::</span></div>
                            <div class="inbox">
                            	<div class="list">
								<ul>
								<?php 
								foreach($learning as $l)
								{
								?>
                                	<li><a class="linklearn" href="<?php echo $baseUrlSave."materi/".$l['id_elearning']."/".$l['judul']?>">                                 
	                                    <p class="title2"><?php echo $l['judul']?></p>
                                        <p class="dosen"><?php echo $l['nama']?><span class="right"><?php echo $l['mata_kuliah']?></span></p>
                                        <div class="dbox">
                                        	<img class="thumbs" src="<?php echo $template_path?>css/images/elearning_icon_up.png" />
                                        	<p class="desc-fak"><?php echo $l['isi']?></p>
                                        </div>
                                        </a>
                                    </li>
                                <?php 
								}
								?>
                                </ul>                           
								</div>
                            <div class="box-center-bot"><a class="icon" href="<?php echo $baseUrlSave?>elearning">Arsip E-learning</a></div>    
                            </div>
                        </div>
                        
                    	<div class="box-col">
                        	<div class="adbox bg-url3"><span>Gallery Kampus ::</span></div>
                            <div class="inbox">
                            	<div class="list">
								<ul>
								<?php 
								foreach($galeri as $g)
								{
								?>
                                	<li>
										<a class="linkbea kitbox" href="<?php echo $baseUrlSave."detail_galeri/".$g['id_galeri']."/".$g['judul_html']?>">
											<table>
											<tbody>
												<tr>
													<td class="timage">
														<img src="<?php echo $g['gambar']?>" />
													</td>
													<td class="tglr">
														<p><?php echo $g['tanggal']?></p>
														<p class="title"><?php echo $g['judul']?></p>
													</td>
												</tr>                                                                                                                                
											</tbody>
											</table>	
										</a>                                    
                                    </li>       
                                <?php 
								}?>
                                 </ul>                               
								</div>
                            <div class="box-center-bot"><a class="icon" href="<?php echo $baseUrlSave."galeri";?>">Arsip Galeri</a></div> 
                            </div>
                        </div>                                              
    				</div>
    			</div>
			</div>
            
			<div class="col4 col-last">
				<div class="box box-half-2">
					<div class="box-content box-center">    
                    <div class="cl-3">&nbsp;</div>              
					<!-- banner widget -->


								<div id="fb-root"></div>
									<script>(function(d, s, id) {
									  var js, fjs = d.getElementsByTagName(s)[0];
									  if (d.getElementById(id)) return;
									  js = d.createElement(s); js.id = id;
									  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=124688717723113";
									  fjs.parentNode.insertBefore(js, fjs);
									}(document, 'script', 'facebook-jssdk'));</script>
									
									<!-- Facbook like box	 -->
									<div class="fb-like-box" data-href="https://www.facebook.com/pages/AKBP-STIEKBP-Padang/58170624086" data-width="220" data-height="380" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>							

									</div>   
	                    
                    
                    
                    <!-- End banner widget -->                     
    				</div>
    			</div>	

			</div>            
			<div class="cl">&nbsp;</div>
		</div>
		<!-- End Text Cols -->		
        
